export const validateToken = (loginTimeStamp) => {
    const expires = 1000000 // 有效时长30s
    const currentTimeStamp = new Date().getTime()
    // 是否过时长
    const hasLongTimeStamp = loginTimeStamp + expires
    if (hasLongTimeStamp <= currentTimeStamp) {
        return true
    } else {
        return false // 失效
    }
}
